package com.ruoyi.tcp.messager;

import io.netty.channel.Channel;
import io.netty.channel.ChannelId;
import io.netty.handler.codec.DelimiterBasedFrameDecoder;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.nio.charset.StandardCharsets;
import java.time.LocalDateTime;

/**
 * @author 蒋翔 SY100242
 * @date 2024/8/5 8:20
 * @email SY100242@hnlens.com
 */
@Setter
@Getter
@ToString
public class CustomerProtocol implements Serializable {


    public static final Integer PROTOCOL_SIZE_MIN = 16; //协议最小8位 包头2位+渠道号2位+CRC校验码2位+包尾2位


    private Long channelNo;

    //被加密的数据
    private byte[] encryptData;

    private ChannelId channelId;
}
